{include 'common/header.html'}
<body>
<header>
<ul>
<li><a href="{$this->urlCreate('admin','index')}" style="z-index: 50;">管理主页</a></li>
<li><a href="#" style="z-index: 49;">版块管理</a></li>
</ul>
</header>

<div id="main">
<div id="subtitle">主题管理</div>
{if(!empty($topics))}
<ol id="list">
{foreach $topics as $topic}

<li>{$topic['title']}&nbsp;[ <a href="{$this->urlCreate('admin','topic_delete',array('id'=>$topic['id']))}" onclick="return confirm('确定删除？');">删</a> | <a href="{$this->urlCreate('admin','topic_change',array('id'=>$topic['id']))}">改</a> ]</li>

{/foreach}
</ol>
{include 'common/switchpages.html'}

{else}

<div style="font-size: 1.2em;color: #EE7700;margin: 1em 2em 1em;">暂无帖子</div>

{/if}
</div>
{include 'common/footer.html'}
</body>
</html>